package com.smedi.ismedi.progress.core.application.query.Impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.smedi.ismedi.progress.api.dto.response.ProgressKanBanStatisticResponse;
import com.smedi.ismedi.progress.core.application.command.ConstructionLogDetailQuery;
import com.smedi.ismedi.progress.core.application.command.ConstructionLogListQuery;
import com.smedi.ismedi.progress.core.application.command.ProgressKanBanQuery;
import com.smedi.ismedi.progress.core.application.query.ConstructionLogQueryService;
import com.smedi.ismedi.progress.core.application.query.ProgressQueryService;
import com.smedi.ismedi.progress.core.domain.aggregatemodel.*;
import com.smedi.ismedi.progress.core.domain.repository.ConstructionLogRepository;
import com.smedi.ismedi.progress.core.domain.repository.ProgressRepository;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 施工日志查询实现
 *
 * @author liaojiajie
 * @date 2022/09/16
 */
@Service
@AllArgsConstructor
public class ConstructionLogQueryServiceImpl implements ConstructionLogQueryService {

    private final ConstructionLogRepository constructionLogRepository;

    @Override
    public Page<ConstructionLog> getConstructionLogList(ConstructionLogListQuery constructionLogListQuery) {
        return constructionLogRepository.getConstructionLogList(constructionLogListQuery);
    }

    @Override
    public ConstructionLogDetail getConstructionLogDetail(ConstructionLogDetailQuery constructionLogDetailQuery,List<Person> personList) {
        return constructionLogRepository.getConstructionLogDetail(constructionLogDetailQuery,personList);
    }

    @Override
    public ConstructionLog getConstructionLogAPPList(ConstructionLogListQuery constructionLogListQuery, List<Person> personList) {
        return constructionLogRepository.getConstructionLogAPPList(constructionLogListQuery,personList);
    }
}
